isFromSource

open fun isFromSource(@NonNull event: MotionEvent, source: Int): Boolean(source)

Determines whether the event is from the given source.

Return

Whether the event is from the given source.

Parameters

event

motion event for which to check the source.

source

The input source to check against.